home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / c / tsr4c.zip / ASCID.C < prev    next >
Text File  |  1994-02-02  |  3KB  |  76 lines

  1. /********************************************************************
  2.         PopASC  (c) Copyright 1992-94 by Omega Point, Inc.
  3. *********************************************************************/
  4.  
  5. #include "cr.h"
  6.  
  7. /************    INITIALIZATION DATA  ************************************
  8.  
  9. Data items defined here are being disposed of when program goes resident.
  10. These data definitions are linked as first c-module (after R0.OBJ).
  11. One may use several data modules of this type. The last of such modules
  12. should have a word variable defined as the last disposable item.
  13. All data defined before (inclusive) that word variable is discarded
  14. when resident mode becomes active. Check its's usage in ASCIC.C module.
  15.  
  16. *************************************************************************/
  17.  
  18. /** These disposable messages go thru dspf **/
  19.  
  20. char loaded_msg[]="PopASC is already loaded. Run ASC /U to unload. `e";
  21. char removed_msg[]="PopASC was unloaded from memory. `e";
  22. char cant_msg[]="Cannot unload PopASC (other TSRs loaded after it). `e";
  23.  
  24.  /**** config_block STORED IN (any) ONE MODULE ONLY ****/
  25.  
  26. struct cfg_rec config_block = {    /* This record stays in only one module */
  27.     sizeof(config_block),    /* Configuration block size */
  28.     'A','S','C','I',    /* Program ID string */
  29.     100            /* Version 1.00 */
  30.     };
  31.  
  32.  
  33.  
  34. char hello_atr[]={0x1b,0x1e,0x1f,0x19,0x1b,0x1E};
  35. char hello_msg[]="`2\
  36.  `\xB4`m\
  37. `\x0 PopASC - ASCII/Color  (C) 1992-4 Omega Point, Inc. `w\
  38.  `w\
  39. `\x07`1Right-Ctl `0: Pop On/Off (or `1Ctl-SPACE`0) `w\
  40. `\x04`1PgUp/Dn \x1A `0: Move within ASCII chart `w\
  41. `\x0b`1SPACE `0: Toggle ASCII \x11═\x10 Colors `w\
  42. `\x0b`1Enter `0: Send ASCII code to application `w\
  43. `\x0d`1Ins `0: Send Ctl-P + ASCII code `w\
  44. `\x02`1F12 `0(or `1Alt-.`0) `0: Repeat sending (no pop-up) `w\
  45. `\x0a`0ASC `1/U`0 : Unload PopASC from RAM (if last) `w\
  46. `3 `w\
  47. ▀`w\
  48. `4 Written using `5CodeRunneR`4 (R) - the #1 TSR library `w\
  49. `4 for C or assembly programmers. For information call `w\
  50. `4 `2Omega Point`4 at `1(508) 877-1819`4 or fax at `1877-0915`4. `w\
  51. `3 `r";
  52.  
  53. char _tsr_name[]="PopASC (c) 1994 by OP";
  54.  
  55. /***************************************************************************
  56.    THIS FOLLOWS IMMEDIATELY AFTER THE LAST DISPOSABLE DATA ITEM 
  57. ****************************************************************************/
  58.  
  59. /****  1. Store all "install_" type function pointers into install_list ****/
  60.  
  61. extern install_hk();     /* Minimal support for Hot-Keys (Hardware only)  */
  62. extern install_bk();     /* Optional BIOS-KEY (or faked-key) support.     */
  63. extern install_sch();     /* Regular Scheduler.                  */
  64. extern install_tsc();     /* Tiny scheduler.                  */
  65. extern install_trap();   /* Interrupt traps.                   */
  66. extern install_dos_rdy();/* DOS intercept, to keep DOS from staying busy. */
  67.  
  68. fp install_list[]={install_hk};
  69.  
  70. /****  2. Put Marker for the end-of-init-data (must be = NZ) ****/
  71.  
  72. word init_data_end=1;
  73.  
  74. /************************************************************************/
  75.  
  76.